<template>
    <div>
        <el-button type="primary" @click="login">登录</el-button>
    </div>
</template>

<script setup>
import { useUserStore } from "@/stores/modules/user";
import { useRouter } from "vue-router";

const userStore = useUserStore();
const router = useRouter();

const login = () => {
    userStore.setToken('ccccccccccccccccccccc');
    router.push('/home/index');
}
</script>

<style lang="scss" scoped>

</style>